import request from '@/utils/request'
export default class index {
    static login(username: any, password: any) {
        return request({
            url: '/api/user/login',
            method: 'post',
            data: {
            username,
            password
            }
        })
    }
    
    static getInfo(token: any) {
        return request({
            url: '/api/user/info',
            method: 'get',
            params: { token }
        })
    }
    
    static logout() {
        return request({
            url: '/api/users/logout',
            method: 'post'
        })
    }
}




